package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcFollowDataTemperature;
import com.csun.cmny.provider.model.dto.follow.FollowDataPageQuery;
import com.csun.cmny.provider.model.vo.TemperatureForOldmanIds;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface DmcFollowDataTemperatureMapper extends Mapper<DmcFollowDataTemperature> {

    /**
     * query dmc follow data temperature list with page
     *
     * @param followDataPageQuery follow data query page
     *
     * @return the page info
     */
    List<DmcFollowDataTemperature> queryDmcFollowDataTemperatureListWithPage(FollowDataPageQuery followDataPageQuery);

    /**
     * @description: TODO 
     * @param: oldmanId 老人ID
     * @return: 老人设备最新一次数据
     * @throws 
     * @author huangxm
     * @date 2019/3/15 11:58 
     */
    Map<String,Object> getRecentData(@Param("oldmanId")Integer oldmanId);

    List<TemperatureForOldmanIds> queryDmcFollowDataTemperatureListWithPages(FollowDataPageQuery followDataPageQuery);
}